﻿@using System.Data
@using ZoomLa.Common
@model ZoomLa.SQLDAL.SQL.PageSetting
@{
    Model.cols = 9;
}
<table id="EGV" class="table table-striped table-bordered table-hover">
    <tr>
        <td class="td_s"></td>
        <td>ID</td>
        <td>流水号</td>
        <td>试卷名称</td>
        <td>用户名</td>
        <td>分数</td>
        <td>阅卷教师</td>
        <td>答题日期</td>
        <td>操作</td>
    </tr>
    @if (Model.itemCount > 0)
    {
        foreach (DataRow dr in Model.dt.Rows)
        {
            <tr ondblclick="location='/User/Exam/ExamDetail?ID=@dr["PaperID"]&Action=View&FlowID=@(dr["FlowID"])';">
                <td><input type="checkbox" name="idchk" value="@dr["ID"]" /></td>
                <td>@dr["ID"]</td>
                <td>@dr["FlowID"]</td>
                <td>
                    <a href="/User/Exam/ExamDetail?ID=@dr["PaperID"]&Action=View&FlowID=@(dr["FlowID"])" target="_blank" title="查看详情">@dr["PaperName"]</a>
                </td>
                <td>@dr["UserName"]</td>
                <td>@dr["TotalScore"]</td>
                <td>@(string.IsNullOrEmpty(DataConverter.CStr(dr["TechName"])) ? "尚未阅卷" : dr["TechName"])</td>
                <td>@DataConverter.CDate(dr["CDate"]).ToString("yyyy年MM月dd日 HH:mm")</td>
                <td>
                    <a target="_blank" href="/User/Exam/ExamDetail?ID=@dr["PaperID"]&Action=View&FlowID=@(dr["FlowID"])" class="option_style"><i class="fa  fa-pencil-square-o" title="批阅"></i>批阅试卷</a>
                </td>
            </tr>
        }
    }
    else
    {
        <tr><td colspan="9">当前没有数据</td></tr>
    }
    @Html.Partial("_page",Model)
</table>